package com.omega.framework.springboot.example.service;

import com.omega.framework.cache.utils.CacheUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 缓存操作类
 *
 * @author Lv.
 * @date 2022/11/3 11:55
 */
@Service
@Slf4j
public class CacheService {

    /**
     * 设置redis值
     *
     * @param string 值
     */
    public void setString(String string) {

        CacheUtils.set("setString", string);
    }
}
